<?php

/**
 * resources/templates/www/error.phtml
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 *
 * PHP version 5
 *
 * @author    Johann Zelger <jz@appserver.io>
 * @copyright 2015 TechDivision GmbH <info@appserver.io>
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 * @link      https://github.com/appserver-io/appserver
 * @link      http://www.appserver.io
 */
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="<?php echo $response->getStatusCode()?> <?php echo $response->getStatusReasonPhrase()?>">
<title><?php echo $response->getStatusCode()?> <?php echo $response->getStatusReasonPhrase()?> | appserver.io</title>
<style type="text/css">
<!--
    html, body { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; text-align: center; color: #222222;}
    header { background-color: #222; padding: 40px 0 20px 0; color: #FFF; }
    footer { font-size: 12px; border-top: 1px solid #eee; padding-top: 25px; margin-top: 25px; width: 90%; margin: 0 auto; text-align: right; }
    address { font-family: monospace, serif; font-style: normal; }
    h1 { margin: 0; font-size: 24px; padding: 10px 0 18px 0; font-weight: normal; }
    p { padding-top: 15px; }
    .exception { text-align: left; width: 90%; margin: 0 auto; font-size: 14px; font-family: monospace, serif; padding: 20px 0 40px 0; }
-->
</style>
</head>
<body>
    <header>
        <img title="appserver.io" src="">
        <h1><?php echo $response->getStatusCode()?> <?php echo $response->getStatusReasonPhrase()?></h1>
    </header>

    <div class="exception">
        <?php if ($response->getStatusReasonPhrase() !== $exception->getMessage()): ?>
            <h2><?php echo $exception->getMessage() ?></h2>
        <?php endif; ?>
        <p><?php echo str_replace("\n","<br/><br/>", $exception->__toString()); ?></p>
    </div>

    <footer>
        <?php echo $this->getRequestContext()->getServerVar('SERVER_SIGNATURE') ?>
    </footer>
</body>
</html>